<?php
session_start();

$username = $_SESSION['username'];
$password = $_SESSION['password'];
$uid = $_SESSION['userid'];
$auth = $username.":".$password;

	$url = "http://localhost:8080/moms-diary/services/userinfo/unfollow/".$uid;
	$ch = curl_init($url);
	curl_setopt($ch, CURLOPT_HEADER, true);
	curl_setopt($ch, CURLOPT_POST, true);
	curl_setopt($ch, CURLOPT_USERPWD, $auth);
	curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);

	$data = curl_exec($ch);
	$return =  curl_getinfo($ch);

	print_r($data);
	//print_r($return);
	curl_close($ch);

?>
